package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.SysRole;

import java.util.List;

public interface SysRoleService {
    /**
     * 查询全部角色信息
     */
    public List<SysRole> findAll() throws Exception;

    /**
     * 验证code是否唯一
     */
    public boolean codeExist(String code) throws Exception;

    boolean save(SysRole sysRole);

    SysRole findById(Long id);

    boolean del(Long id);
}
